package weiconsole;

import java.util.ArrayList;

public class Module {
	private String className = "";
	private ArrayList<String> functions = new ArrayList<String>();
	private Object obj;
	
	public Module(String className, Object obj) {
		this.className = className;
		this.obj = obj;
	}
	
	public void addFunction(String funcName) {
		functions.add(funcName);
	}
	
	public Object getObj() {
		return this.obj;
	}
	
	public String getClassName() {
		return className;
	}
	
	public boolean lookUpFunctionName(String funcName) {
		for (int i = 0; i < functions.size(); i++) {
			if (funcName.equals(functions.get(i))) {
				return true;
			}
		}
		return false;
	}

}
